package com.unit_8;
import java.util.Random;
public class RandomNumber {
    public static void main(String[] args) {
        Random random  = new Random();
        int[] arr = new int[7];
        for(int i = 0; i < 3000; i++){
            arr[random.nextInt(6) + 1]++;
        }
        for(int i = 1; i <= 6; i++)
            System.out.println(i + "出现：" + arr[i] + "次");
    }
}
